//package com.siecom.hostservice;
//
//import android.content.BroadcastReceiver;
//import android.content.Context;
//import android.content.Intent;
//import android.util.Log;
//
//import com.siecom.tool.LogUtil;
//
//public class PinEntryBroadCastReceiver extends BroadcastReceiver {
//    private static final String TAG = "PinEntryBroadCastReceiver";
//    private PinLenCallback mCallBack;
//    @Override
//    public void onReceive(Context context, Intent intent) {
//        LogUtil.e(TAG,"action == " + intent.getAction());
//        if (intent.getAction().equals("com.pos.pinentry"))
//        {
//            int len = intent.getIntExtra("pinLen", 0);
//            LogUtil.e(TAG,"PinLen:"+len);//len:0~12  finish:100
////              Intent newIntent = new Intent(context, MainActivity.class);
////              newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);  //注意，必须添加这个标记，否则启动会失败
////              context.startActivity(newIntent);
//            if(mCallBack != null){
//                mCallBack.onPinLenIn(len);
//            }
//        }
//    }
//
//    public void setmCallBack(PinLenCallback callBack){
//        this.mCallBack = callBack;
//    }
//
//    public interface PinLenCallback{
//        void onPinLenIn(int len );
//    }
//
//}
